<?php
	// we want to be sure that this page is send UTF-8 encoded
	// regardless of apache configration
	header("Content-Type: text/html; charset=utf-8");

	// wirte Session (needed for MGI Service and to show Routes)
	//Need Session to save IMG Information
	session_start();
	
	// get the configuration
	include_once("conf.php");

	// get the example/source code file
	$src = empty($_REQUEST['src']) ? "" : $_REQUEST['src'];
	$srcFile = dirname(__FILE__) . "/examples/" . basename($src);

	$sid = $CONF['SESSION_ID'];
	// execute the file
	include_once($srcFile);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Mapsolute - php/SOAP examples</title>
	<link rel="stylesheet" href="css/map24.css" type="text/css" />
</head>
<body>

<h2 class="tab">Rendered Output</h2>
<?print_r( mb_convert_encoding($resultString, "UTF-8", mb_detect_encoding($resultString, "UTF-8, ISO-8859-1, ISO-8859-15", true)));?>


<h2 class="tab">SOAP Response</h2>
<xmp><?print_r($response);?></xmp>





</body>
</html>